package painter4ViewHelper;

import java.awt.Graphics;
import java.awt.Image;
import java.util.ArrayList;

public class TextPainter extends Painter {

	public String text;
	
	public TextPainter(int x,int y) {
		super(x, y, null);
	}
	
	public TextPainter(int x, int y, ArrayList<Image> images) {
		super(x, y, images);
	}
	
	@Override
	public void paint(Graphics g) {
		g.drawString(text, getPosition().getX(), getPosition().getY());
	}
	public void setText(String text) {
		this.text = text;
	}

}
